package com.syh.jn.scm.infrastructure.repository.model.base;


import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 银行账户
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_BUSINESS_ENTITY_BANK_ACCOUNT")
@EqualsAndHashCode(callSuper = true)
public class BusinessEntityBankAccountModel extends SuperBusinessModel {
    /**
     * 开户公司
     */
    @Column(name = "ACCOUNT_COMPANY", columnDefinition = "varchar(50) COMMENT '开户公司'")
    private String accountCompany;
    /**
     * 开户行
     */
    @Column(name = "ACCOUNT_BANK", columnDefinition = "varchar(50) COMMENT '开户行'")
    private String accountBank;
    /**
     * 开户支行
     */
    @Column(name = "ACCOUNT_BRANCH_BANK", columnDefinition = "varchar(50) COMMENT '开户支行'")
    private String accountBranchBank;
    /**
     * 地址省 市 区
     */
    @Column(name = "AREA", columnDefinition = "varchar(300) COMMENT '地址省 市 区 使用[广东省,广州市,海珠区]格式保存'")
    private String area;
    /**
     * 支行地址
     */
    @Column(name = "BRANCH_BANK_ADDRESS", columnDefinition = "varchar(100) COMMENT '支行地址'")
    private String branchBankAddress;
    /**
     * 开户账号
     */
    @Column(name = "ACCOUNT_BANK_CODE", columnDefinition = "varchar(100) COMMENT '开户账号'")
    private String accountBankCode;
    /**
     * 状态: -1停用, 1可用
     */
    @Column(name = "STATUS", columnDefinition = "smallint COMMENT '状态: -1停用, 1可用'")
    private Short status;
    /**
     * 所属终端系统:DOWNSTREAM,OPERATION,SUPPLIER,UPSTREAM
     */
    @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
    private String terminalType;
}
